package net.zoneland.knowledge.service;

import net.zoneland.knowledge.controller.bean.DocumentVerificationParams;
import net.zoneland.knowledge.controller.bean.TermInfoParams;
import net.zoneland.knowledge.exceptions.DocumentVerificationException;

/**
 * 文稿校验服务接口.
 */
public interface DocumentVerificationService {

    /**
     * 校验文稿.
     * @param content 要校验的内容.
     * @return 返回数据处理结果，成功0或者失败-1，以及原因
     */
    String verifyDocument(final DocumentVerificationParams content) throws DocumentVerificationException;

    /**
     * 更新名词库.
     * @param termInfoParams 词库更新的参数对象.
     * @return 返回更新成功0还是失败-1以及信息
     */
    String updateTerms(final TermInfoParams termInfoParams) throws DocumentVerificationException;
}
